package com.example.demo_test.Dao;

import com.example.demo_test.Entity.GroupMessage;
import com.example.demo_test.Entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageDao {
    void insertMessage(@Param( "message" ) Message message);
    void updateStatus(@Param( "status" )String status,@Param( "eid" )int eid);
    List<Message> getMessageList(@Param("UserId")String userId,@Param("friendId")String friendId);
    void readInfo(@Param("UserId")String userId,@Param("friendId")String friendId);
    List<GroupMessage> getGroupMessageList(@Param( "groupId" )int groupId);
    void addGroupMessage(@Param( "groupMessage" ) GroupMessage groupMessage);
    void deleteMessage();
}
